"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.getRoot = getRoot;
var rootId = "dzq-popover-root";
/**
 * 获取popover根节点
 */

function getRoot() {
  var root = window[rootId] || document.getElementById(rootId);

  if (!root) {
    root = document.createElement("div");
    root.id = rootId;
    document.body.appendChild(root);
    window[rootId] = root;
  }

  return root;
}